package com.spica.spicaschool.bean.news

import android.os.Parcelable
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.squareup.moshi.JsonClass
import kotlinx.parcelize.Parcelize

@Parcelize
@Entity
@JsonClass(generateAdapter = true)
data class News(
    val auto: String?,
    val description: String,
    val headpic: String,
    @PrimaryKey
    val id: String,
    val publishtime: Int,
    val source: String,
    val title: String,
    val typeid: Int
) : Parcelable